<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/public/BaseCms.php");

/**
 * 友情链接
 * Class FriendLink
 */
class FriendLink extends BaseCms
{
    public $tb_name = "friend_link";

    function __construct()
    {
        parent::__construct($this->tb_name);
    }

    /**
     * 获取所有友情链接数据
     * @return array|mixed
     */
    function loadAllData()
    {
        $condition = ["status_code" => 1, "is_del" => 0];
        $orderBy = ["created_date" => "desc"];
        return $this->findList($condition, $orderBy);
    }


}